package cn.yunhe.dplayerdemo3.mapper;

import cn.yunhe.dplayerdemo3.entity.Video;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface IVideoMapper extends BaseMapper<Video> {

    @Select("select * from tb_video where id=#{id}")
    Video getVideoByName(int id);

    int delLike(int id);

    int addLike(int id);
}
